package com.iris.live.services.report.data.baseline;

import com.iris.live.services.report.data.ColumnUnit;
import com.iris.live.services.report.data.ReportContext;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description:基础上下文环境
 * @author: Tony.Zhang
 * @Date: 2017-08-25 13:51
 **/
public class BaselineContext extends ReportContext {
    private List<BaseUnit> units = new ArrayList<>();

    public BaselineContext() {
    }

    public BaselineContext addUnit(BaseUnit unit){
        this.units.add(unit);

        return this;
    }

    public List<BaseUnit> getUnits() {
        return units;
    }

    public void setUnits(List<BaseUnit> units) {
        this.units = units;
    }

    @Override
    public List<? extends ColumnUnit> getColumnUnits() {
        return units;
    }
}
